import request from "../sevices/request";

class Home{
  static getNav = ()=> request.get("/nav")
  static getGoods = ()=> request.get("/goods")  
  static getProvinceList = ()=> request.get("/province")
  static getFound=()=>request.get('/found')
  static getHistory = (userid:string) => request.get("/history",{params:{userid}})
  static delHistory = (id:number) => request.delete("/history/"+id)
  static addHistory = (data:any) => request.post("/history",data)
} 


export default Home